function checkParams() {
    if($.trim($("#productName").val()).length === 0) {
        $("#errorMsg").html("请填写名称");
        return;
    }

    if($.trim($("#productPrice").val()).length === 0) {
        $("#errorMsg").html("请填写价格");
        return;
    }

    if($.trim($("#productCount").val()).length === 0) {
        $("#errorMsg").html("请填写数量");
        return;
    }

    if ($.trim($("#productImg").val()).length === 0) {
        $("#errorMsg").html("请上传图片");
        return;
    }

    loadEditCompleteDate();
}